package cn.jsj.invite.pojo.identity;


import lombok.extern.slf4j.Slf4j;

/**
 * 用户角色
 *
 * @author 卢斌
 */
@Slf4j
public enum UserIdentityEnum {

    /**
     * 学生
     */
    STUDENT,


    /**
     * 学校
     */
    SCHOOL,


    /**
     * 企业
     */
    ENTERPRISE,


    /**
     * 超管
     */
    SUPER;


    public static Boolean isStudent(UserIdentityEnum userIdentityEnum) {
        return UserIdentityEnum.STUDENT.equals(userIdentityEnum);
    }

    public static Boolean isSchoolAdmin(UserIdentityEnum userIdentityEnum) {
        return UserIdentityEnum.SCHOOL.equals(userIdentityEnum);
    }

    public static Boolean isEnterprise(UserIdentityEnum userIdentityEnum) {
        return UserIdentityEnum.ENTERPRISE.equals(userIdentityEnum);
    }


}
